package com.example.data.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

/**
 * Created by hldev on 16-12-7.
 */
@Data
@ApiModel(value = "用户表")
public class User {

    @ApiModelProperty(value = "ID", required = true)
    private Integer id;

    @ApiModelProperty(value = "姓名", required = true)
    private String userName;

    @ApiModelProperty(value = "密码", required = true)
    private String passWord;

    @ApiModelProperty(value = "邮箱", required = true)
    private String email;

    @ApiModelProperty(value = "手机号码", required = true)
    private String phone;

    @ApiModelProperty(value = "角色", required = true)
    private Integer role;
}
